package org.omg.GIOP;

//
// Enum definition : MsgType_1_1
//
// @author OpenORB Compiler
//
public final class MsgType_1_1 implements org.omg.CORBA.portable.IDLEntity {
	//
	// Internal member value
	//
	private int _MsgType_1_1_value;

	//
	// Enum member Request value
	//
	public static final int _Request = 0;

	//
	// Enum member Request
	//
	public static final MsgType_1_1 Request = new MsgType_1_1(_Request);

	//
	// Enum member Reply value
	//
	public static final int _Reply = 1;

	//
	// Enum member Reply
	//
	public static final MsgType_1_1 Reply = new MsgType_1_1(_Reply);

	//
	// Enum member CancelRequest value
	//
	public static final int _CancelRequest = 2;

	//
	// Enum member CancelRequest
	//
	public static final MsgType_1_1 CancelRequest = new MsgType_1_1(
			_CancelRequest);

	//
	// Enum member LocateRequest value
	//
	public static final int _LocateRequest = 3;

	//
	// Enum member LocateRequest
	//
	public static final MsgType_1_1 LocateRequest = new MsgType_1_1(
			_LocateRequest);

	//
	// Enum member LocateReply value
	//
	public static final int _LocateReply = 4;

	//
	// Enum member LocateReply
	//
	public static final MsgType_1_1 LocateReply = new MsgType_1_1(_LocateReply);

	//
	// Enum member CloseConnection value
	//
	public static final int _CloseConnection = 5;

	//
	// Enum member CloseConnection
	//
	public static final MsgType_1_1 CloseConnection = new MsgType_1_1(
			_CloseConnection);

	//
	// Enum member MessageError value
	//
	public static final int _MessageError = 6;

	//
	// Enum member MessageError
	//
	public static final MsgType_1_1 MessageError = new MsgType_1_1(
			_MessageError);

	//
	// Enum member Fragment value
	//
	public static final int _Fragment = 7;

	//
	// Enum member Fragment
	//
	public static final MsgType_1_1 Fragment = new MsgType_1_1(_Fragment);

	//
	// Return the internal member value
	// @return the member value
	//
	public int value() {
		return _MsgType_1_1_value;
	}

	//
	// Return a enum member from its value
	// @param an enum value
	// @return an enum member
	//
	public static MsgType_1_1 from_int(int value) {
		switch (value) {
		case 0:
			return Request;
		case 1:
			return Reply;
		case 2:
			return CancelRequest;
		case 3:
			return LocateRequest;
		case 4:
			return LocateReply;
		case 5:
			return CloseConnection;
		case 6:
			return MessageError;
		case 7:
			return Fragment;
		}
		throw new org.omg.CORBA.BAD_OPERATION();
	}

	//
	// Private constructor
	// @param the enum value for this new member
	//
	private MsgType_1_1(int value) {
		_MsgType_1_1_value = value;
	}

}
